FROM registry.cn-shanghai.aliyuncs.com/fengzhihao/centos:7

LABEL version="1.0"
LABEL maintainer="1209103220@qq.com"

ADD . /var/html/

WORKDIR /var/html/

# 安装 Umi#
# 推荐使用 yarn 创建 Umi 脚手架，执行以下命令。
# https://pro.ant.design/docs/getting-started-cn
# RUN yarn create umi
# RUN npm install

# 环境变量
# https://umijs.org/zh-CN/docs/env-variables
# APP_ROOT=
# 默认压缩 CSS 和 JS，值为 none 时不压缩，build 时有效。
ENV COMPRESS=none

# 执行以下命令，安装插件集（包括 antd、dva、国际化等常用插件）：
# RUN yarn add @umijs/preset-react -D

# RUN npx umi g page products --typescript 创建 products 页面
# Write: src/pages/products.tsx
# Write: src/pages/products.css

# 运行  然后在浏览器里打开 http://localhost:8000/products，你应该能看到对应的页面。
CMD npm start

# CMD npm run

# CMD npm run build:dev

# docker build -f "./Dockerfile" -t xxx.com/tinem/platform-app-admin:master "."

# docker push xxx.com/chat/h5:master-docker

# docker run -p 8000:8000 --name platform-app-admin -v /Users/fzh/project/fzh/platform/platform-app/platform-app-admin/:/var/html/ -it --rm xxx.com/tinem/platform-app-admin:master /bin/bash

# docker exec -it admin /bin/bash

#  npx umi g page salary --typescript
